//
//  YSNiceArticleCell.m
//  Yueshi
//
//  Created by Northwan on 15/8/31.
//  Copyright (c) 2015年 悦食中国. All rights reserved.
//

#import "YSNiceArticleCell.h"
@interface YSNiceArticleCell()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIImageView *iconView;

@end
@implementation YSNiceArticleCell

+(instancetype)cellWithTableView:(UITableView *)tableView{
    static NSString *CellIdentiferId = @"YSNiceArticleCell";
    YSNiceArticleCell *cell =  [tableView dequeueReusableCellWithIdentifier:CellIdentiferId];
    if(cell == nil){
        NSArray *nibs = [[NSBundle mainBundle]loadNibNamed:@"YSNiceArticleCell" owner:nil options:nil];
        cell = [nibs lastObject];
    }
    return cell;
}

-(void)setReview:(YSReviews *)review{
    [self.nameLabel setText:review.postName];
    [self.iconView setImageURLStr:review.imgList];
}

@end
